<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Code by TinhNQ
 * 2014
 **/
class Dish_Module extends Module {
    public $name = 'dish';
    
    public function __construct(){
        $this->active_module = $this->name;
        parent::__construct();
    }
    
    public function do_admin_preload(){
        $this->CI->admin_navigation->child_link('dish',1,'Quản lý món ăn',admin_url('*/dish/manager_dish'));
        $this->CI->admin_navigation->child_link('dish',2,'Loại món ăn',admin_url('*/dish/category_dish'));
    }
    
    function do_front_preload(){
        $this->CI->smarty->addPluginsDir(APPPATH.'modules/dish/plugins/');
    }
}
